package com.xthh._struct;


import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.PointF;

import com.xthh._enum.HH_EnumLayerType;

import java.io.Serializable;

public class HH_T_CustomLayerInfo  implements Cloneable, Serializable {

    public HH_EnumLayerType layerType;
    private String srcPath;

    public String getSrcPath() {
        return srcPath;
    }

    public void setSrcPath(String srcPath) {
        this.srcPath = srcPath;
    }

    public float startDis;// 开始距离
    public PointF midPoint;// 中间点
    public float oldRotation = 0;
    public float rotation = 0;
    public PointF startPoint = new PointF();
    public Matrix matrix = new Matrix();
    public Bitmap bitmap;
    public HH_T_MatrixNewRect martixNewRect;

    public HH_T_MatrixNewRect getMartixNewRect() {
        return martixNewRect;
    }

    public void setMartixNewRect(HH_T_MatrixNewRect martixNewRect) {
        this.martixNewRect = martixNewRect;
    }

    public void setBitmap(Bitmap bitmap) {
        this.bitmap = bitmap;
    }
    public Bitmap getBitmap() {
        return bitmap;
    }
    public void setMatrix(Matrix matrix) {
        this.matrix = matrix;
    }

    public HH_EnumLayerType getLayerType() {
        return layerType;
    }

    public void setLayerType(HH_EnumLayerType layerType) {
        this.layerType = layerType;
    }


    // 以下文本图层
    int x;
    int y;
    int w;
    int h;
    int fontSize;
    int txt_r;
    int txt_g;
    int txt_b;
    String txt;
    boolean bold;
    boolean italic;
    boolean underline;

    public boolean isBold() {
        return bold;
    }

    public void setBold(boolean bold) {
        this.bold = bold;
    }

    public boolean isItalic() {
        return italic;
    }

    public void setItalic(boolean italic) {
        this.italic = italic;
    }

    public boolean isUnderline() {
        return underline;
    }

    public void setUnderline(boolean underline) {
        this.underline = underline;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getW() {
        return w;
    }

    public void setW(int w) {
        this.w = w;
    }

    public int getH() {
        return h;
    }

    public void setH(int h) {
        this.h = h;
    }

    public int getFontSize() {
        return fontSize;
    }

    public void setFontSize(int fontSize) {
        this.fontSize = fontSize;
    }

    public int getTxt_r() {
        return txt_r;
    }

    public void setTxt_r(int txt_r) {
        this.txt_r = txt_r;
    }

    public int getTxt_g() {
        return txt_g;
    }

    public void setTxt_g(int txt_g) {
        this.txt_g = txt_g;
    }

    public int getTxt_b() {
        return txt_b;
    }

    public void setTxt_b(int txt_b) {
        this.txt_b = txt_b;
    }

    public String getTxt() {
        return txt;
    }

    public void setTxt(String txt) {
        this.txt = txt;
    }

    public HH_T_CustomLayerInfo clone()  {
        try {
            return (HH_T_CustomLayerInfo) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();

        }
        return null;
    }
}
